<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>羔羊论坛</title>
<link rel="icon" type="image/x-icon" href="img/sheep.ico" />
<link rel="stylesheet" type="text/css" href="css/denglu.css" />
</head>
<body>
<%
	request.setCharacterEncoding("UTF-8");
	String xiugai = (String)request.getAttribute("xiugai");
%>
<div class="bg">
			<div class="ti">
				<div class="pc">
				</div>
				<div class="title">
					<h1><font face="微软雅黑">分享生活，传递快乐！</font></h1>
				</div>
			</div>
			<div class="main">
				<form  method="post" name="login">
				<div class="ps">
					<div class="na">
						<table height="90px" width="300px" align="center">
							<tr>
								<td width="80px" height="40px">
									<font face="微软雅黑" size="4" color="black">用户名：</font>
								</td>
								<td width="220px">      <!--用户名-->
									<input type="text" name="username" 
									<%if(null==xiugai||"".equals(xiugai))
									{
									%>
									value="${param.username }" 
									<%
									}
									%>
									 required style="background:transparent;border:1px solid black" size="20"
										onclick="tishi()" onblur="checkname()"/>
								</td>
							</tr>
							<tr>
								<td colspan="2" align="center">
									<label id="lablename1"></label>
								</td>
							</tr>
						</table>
					</div>
					<div class="na">
						<table height="90px" width="300px" align="center">
							<tr>
								<td width="80px" height="40px">
									<font face="微软雅黑" size="4" color="black">密&nbsp;码：</font>
								</td>
								<td width="220px">     <!--密码-->
									<input type="password" name="password" 
									<%if(null==xiugai||"".equals(xiugai))
									{
									%>
									value="${param.password }" 
									<%
									}
									%>
									required style="background:transparent;border:1px solid black" size="20"
										onclick="tishi2()" onblur="checkword2()"/>
								</td>
							</tr>
							<tr>
								<td colspan="2" align="center">
									<label id="lablename2"></label>
								</td>
							</tr>
						</table>
					</div>
					<div class="wo">
						<table height="60px" width="300px" align="center">
							<tr>
								<td width="80px" height="40px">
									<font face="微软雅黑" size="4" color="black">验证码：</font>
								</td>
								<td width="220px">     <!--验证码-->
									<input type="text" name="checkcode" style="background:transparent;border:1px solid black;width:50px"/>
										<img style="border:1px solid black" src="checkcode" />
									<input type="submit" value="换一张" onclick="login.action='changecheckcode'" />
								</td>
							</tr>
							
						</table>
					</div>
					<div class="bu">
						<input type="submit" class="size" onclick="login.action='UserServlet'" value="登&nbsp&nbsp&nbsp&nbsp录" style="width: 300px;height: 50px;
							background-color:lightskyblue;color: white;border: hidden;" />
					</div>
					<p align = "center" style="color:red;font-size:20px" >
					<a href = "regist.jsp" >点      我      注      册</a>
					</p>
					<div align="center">
						<p style="color:red;font-size:20px"><b>
						<%
							request.setCharacterEncoding("UTF-8");
							String info = (String)request.getAttribute("info");
							if(info==null||"".equals(info)) {}
							else  {out.print(info);}
						%>
						</b></p>
					</div>
				</div>
			
				</form>
				
			</div>
			
		</div>

<%-- 			<jsp:include page="footer.jsp"></jsp:include> --%>
<a href="regist.jsp">注册</a>
</body>
</html>